'use strict';

import { Application } from 'egg';

export default function(app: Application) {
  const { STRING, INTEGER} = app.Sequelize;
  const SubCategory = app.model.define('sub_category', {
    sub_category_id: { type: INTEGER, unique: true, autoIncrement: true, primaryKey: true },
    category_id:{ type: INTEGER},
    sub_id:{ type: INTEGER},
    create_time: { type: STRING}
  },{
    tableName:'sub_category',
    timestamps: false,
  });
  

  return class extends SubCategory {
    static associate() {
    }
  }
}